package net.ikenway.springboot.demo.Model.Dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.ikenway.springboot.demo.Model.Entity.Product;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author MasterKenway <zk@ikenway.net>
 * @Description
 * @date Created Date 12/18/2020
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProductSortDto implements Serializable {
    private Long sortId;
    @NotNull(message = "产品名不能为空")
    @NotEmpty(message = "产品名不能为空")
    private String sortName;
    private Integer displayOrder;
    private Boolean enable = true;
    private List<Product> products;
}
